package com.study.spring.aop;

import com.study.spring.aop.model.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("AopBeans.xml");
        UserDao userDao = context.getBean(UserDao.class);
        User user = new User("zhangsan", 12);
        userDao.addUser(user);
    }
}
